package com.Maykk.Demo02;


/**
 * @ClassName: DemoTest
 * @Description: TODO 枚举类型测试
 * @Author: MaykkStar@163.com
 */
public class DemoTest {
    public static void main(String[] args) {
        System.out.println(Direction.UP);
        System.out.println(Direction.LEFT);
        System.out.println(Direction.DOWN);
        System.out.println(Direction.RIGHT);
        System.out.println("''''''''''''''''''''''''");

        // 由于构造方法私有，不能使用构造方法实例化对象
        Direction direction = null;
        direction = Direction.UP;
        System.out.println(direction);

        // 调用成员变量


    }
}
